package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class OrderInfo extends BaseRowModel implements Serializable {
    private static final long serialVersionUID = 1L;

    //订单号
    @ExcelProperty(value = "订单号",index = 0)
    private String orderId;

    //订单状态
    @ExcelProperty(value = "订单状态",index = 1)
    private String status;

    //用户
    @ExcelProperty(value = "用户",index = 2)
    private String userName;

    //手机号
    @ExcelProperty(value = "手机号",index = 3)
    private String phone;

    //地址
    @ExcelProperty(value = "地址",index = 4)
    private String address;

    //下单时间
    @ExcelProperty(value = "下单时间",index = 5,format = "yyyy/MM/dd HH:mm")
    private String checkoutTime;

    //实收金额
    @ExcelProperty(value = "实收金额",index = 6)
    private String amount;
}
